import fetch from 'utils/fetch'

export default { // 赞助
  brand_list (params) { // 品牌列表
    return fetch({
      url: '/sponsor/plan/brand/list/select',
      method: 'get',
      params: params
    })
  },
  brand_add (data, options) { // 添加品牌列表
    return fetch({
      url: '/sponsor/plan/brand/insert',
      method: 'post',
      data,
      options
    })
  },
  brand_detailed (params) { // 招商计划列表-详情 可能不需要，暂时留着
    return fetch({
      url: '/sponsor/plan/brand/select',
      params: params
    })
  },
  brand_del (params) { // 删除品牌
    return fetch({
      url: '/sponsor/plan/brand/delete',
      method: 'delete',
      params: params
    })
  },
  brand_edit (data, options) { // 编辑品牌
    return fetch({
      url: '/sponsor/plan/brand/update',
      method: 'put',
      data,
      options
    })
  },
  brand_type (params) { // 品牌类型
    return fetch({
      url: '/sponsor/dict/brand/type',
      method: 'get',
      params: params
    })
  }
}
